package top.xia17.plugins.fast.auth.captcha;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 图片验证码配置
 *
 * @author xia17
 * @date 2022/2/21
 */
@Data
@Configuration
@ConfigurationProperties("xia17fast.auth.captcha")
public class CaptchaProperties {


    /**
     * 类型
     */
    private CaptchaType type = CaptchaType.ARITHMETIC;

    /**
     * 验证码有效期 分钟
     */
    private Long expiration = 2L;

    /**
     * 验证码内容长度
     */
    private Integer length = 2;

    /**
     * 验证码宽度
     */
    private Integer width = 111;

    /**
     * 验证码高度
     */
    private Integer height = 36;

    /**
     * 验证码字体
     */
    private String fontName;

    /**
     * 字体大小
     */
    private Integer fontSize = 25;

    /**
     * uuid前缀
     */
    private String uuidPrefix = "img_captcha_";

}
